
/**		
 * 
 *	uk.co.lmfm.guppy.view.components.core.form.InputButtonField
 *	
 *	@version 1.00 | Jan 12, 2010
 *	@author Justin Windle
 *  
 **/
 
package uk.co.lmfm.guppy.view.components.core.form 
{
	import com.bit101.components.PushButton;
	import com.bit101.components.InputText;

	/**
	 * InputButtonField
	 */
	public class InputButtonField extends LabeledFormField 
	{
		protected var _button : PushButton = new PushButton();

		public function InputButtonField()
		{
			super();
			
			_content.addChild(_button);
			
			_inputText.height = _button.height;
			width = 250;
		}

		public function get button() : PushButton
		{
			return _button;
		}

		public function get inputText() : InputText
		{
			return _inputText;
		}

		override public function set width(value : Number) : void
		{
			super.width = value;
			
			_button.x = value - _button.width;
			_inputText.width = _button.x - 5;
		}
	}
}
